package com.adam.springbucks.aop;
//返回类型枚举，可扩展
public enum  ResCode {
    SUCCESS(1000,"成功"),
    UNKNOWN(1001,"未知错误"),
    BUC_DATA_NOT_FOUND(1002,"查不到数据"),
    BUC_DATA_FOUND(1003,"name已经存在");

    private int code;
    private String info;

    ResCode(int code,String info){
     this.code = code;
     this.info = info;
    }

    public int getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}